<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>hello_react</title>
</head>
<body>
    <!--  准备好一个容器  -->
    <div id="test"></div>

    <!--  引入react核心库  -->
    <script type="text/javascript" src="../../js_base/react.development.js"></script>
    <script type="text/javascript" src="../../js_base/react-dom.development.js"></script>
    <script type="text/javascript" src="../../js_base/babel.min.js"></script>

    <!--  需要使用babel  -->
    <script type="text/babel">
        // 创建函数式组件
        function Demo(){
            return <h2>函数式组件定义：适用于简单组件的定义</h2>
        }

        // 渲染组件到页面
        ReactDOM.render(<Demo/>, document.getElementById('test'));
    </script>

</body>
</html>